#! /usr/bin/env python
# encoding=utf-8

from xmlrpclib import ServerProxy

server = ServerProxy('http://admin:existe@localhost:8081/exist/xmlrpc')

print server.describeCollection('/db/aap')

#xml = raw_input('Introduzca el documento XML: ')
xml = '''\
<datos>
<cosa>asdfad</cosa>
</datos>'''

server.parse(xml, '/db/aap/datos')